#ifndef __IIC_H__
#define __IIC_H__

#include "CH58x_common.h"

uint8_t  HUSB238_I2CReadBytes(uint8_t slaveAddr, uint8_t startAddress);
void HUSB238_WriteReg(uint8_t slaveAddr, uint8_t writeAddress, uint8_t data);

void IIC_write_reg_nBytes(uint8_t addr, uint8_t reg, uint8_t *src, uint8_t len);
void IIC_read_reg_nBytes(uint8_t addr, uint8_t reg, uint8_t *des, uint8_t len);

#endif
